﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain.DeepProcessingDomain;
using Traceability.Domain.SlaughterDomain;

namespace Architecture.Repository.Impl.Traceability
{
    public class DeepProcessingRepository : BaseRepository<DeepProcessing>, IDeepProcessingRepository
    {
        public DeepProcessingRepository(EFCoreContext context) : base(context)
        {

        }

        public async Task<int> AddDeepProcessing(DeepProcessing deepProcessing)
        {
            return await base.AddAsync(deepProcessing);
        }

        public async Task<List<DeepProcessing>> GetDeepProcessingList()
        {
            return await base.GetAllAsync();
        }

        public async Task<int> UpdateDeepProcessing(DeepProcessing deepProcessing)
        {
            return await base.UpdateAsync(deepProcessing);
        }

        public async Task<DeepProcessing> BackInfoDeepProcessing(int deepProcessingId)
        {
            return await base.GetModelAsync(deepProcessingId);
        }

    }
}
